package com.atguigu.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient   //nacos注册
@EnableFeignClients   //服务调用
@ComponentScan(basePackages = {"com.atguigu"})  //加上包扫描，这样就可以加载到service_base模块里的Swagger，或者其他配置类了。
public class EduApplication {

    public static void main(String[] args) {

        SpringApplication.run(EduApplication.class, args);
    }
}
